package com.balance.anole.client.common.dao.hibernate;

import java.util.List;

import com.balance.anole.admin.to.StaffInfoTO;
import com.balance.anole.client.common.dao.StaffInfoDAO;

public class StaffInfoDAOImpl extends BaseDAOImpl implements StaffInfoDAO {

	@SuppressWarnings("unchecked")
	@Override
	public List<StaffInfoTO> getListOfStaffUnderSameAgent(String agentId){
		return getHibernateTemplate().find("from com.balance.anole.admin.to.StaffInfoTO as si where si.staffOwner.agentId = ? order by si.staffId", agentId);
	}
}
